<?php
	$xmlStr = file_get_contents("http://localhost/PhotoAlbumOnline/service.php?format=xml");
	$newXmlStr = str_replace("&lt", "<", $xmlStr);
	$newestXmlStr = str_replace("&gt", ">", $newXmlStr);
	$newestestXmlStr = str_replace("&nbsp;", "", $newestXmlStr);
	$newestestestXmlStr = str_replace("<br />", "", $newestestXmlStr);
	$images = simplexml_load_string($newestestestXmlStr);
	//var_dump($images);
	
	foreach($images->image as $value) {
		foreach($value as $key => $innerValue) {
			echo "$key : $innerValue <br />";
		}
		echo "-----------<br />";
	}
	
	
	
	
?>	